package org.example.mytest.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.example.mytest.newentity.LoginUser;
import org.mapstruct.Mapper;

@Mapper
public interface LoginUserMapper extends BaseMapper<LoginUser>{

    @Select("SELECT * FROM login_user WHERE username = #{username}")
    LoginUser selectByUsername(String username);
    @Insert("INSERT INTO login_user (username, password) VALUES (#{username}, #{password})")
    int insert(LoginUser loginUser);


}
